#!/bin/bash

# Calculate 1 + 2 + ... + 100

sum=0
number=100

for i in $(seq "$number"); do
  sum=$[$sum + $i]
done

echo "$sum"
